﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using WebSimplicity.Data.Helpers;

namespace WebSimplicity.Data
{
    public interface IDomain
    {

    }
    [MetadataType(typeof(IDomain))]
    partial class Domain : IDomain {
        public Domain Create()
        {
            Entities db = new Entities(Config.GetConnection("Data.Model"));
            db.Domains.AddObject(this);
            db.SaveChanges();
            return this;
        }

    }
}
